package com.mes.md.mapper;

import com.mes.pojo.md.Unit;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/10/18 18:32
 */

public interface UnitMapper {
    public List<Unit> unitList(Long unitId);

    public List<Unit> queryUnitList(Unit unit);

    //查询所有主单位
    public List<Unit> queryMainUnitList();

    public Integer addUnit(Unit unit);

    public Integer deleteByUnitId(Long unitId);

    public Unit selectUnitById(Long unitId);

    public Integer updateUnit(Unit unit);

    public Integer deleteUnits(List<Unit> units);
}
